package com.example.administrator.music;

import android.media.MediaPlayer;
import android.os.Binder;
import android.os.IBinder;

/**
 * Created by Administrator on 2017/3/22.
 */

public class Progressor extends Binder{
    private MediaPlayer player;
    public Progressor(MediaPlayer player){
        this.player=player;
    }
    public int getProgress(){
        return player.getCurrentPosition();
    }
    public int getDuration(){
        return  player.getDuration();
    }
}
